package com.twu.biblioteca;

public class ResultsLoggedOut implements Results{
	
	public void reserveBookResult(BibliotecaApp app, Books book, Users user)
	{
		System.out.println("\nYou need to login to use this feature:\n");
		if(app.userLogin(user))
		{
			app.displayOptions();
		}
		else
		{
			System.out.println("The Username and Password combination you entered is incorrect.");
			System.out.println("Please try again");
			this.reserveBookResult(app, book, user);
		}
	}
	
	public void userDetailsResult(BibliotecaApp app, Users user, String username)
	{
		System.out.println("Please talk to a Librarian. Thank you.");
	}

	public void moviesDetailsResult(BibliotecaApp app, Movies movie, Users user)
	{
		System.out.println("\nYou need to login to use this feature:\n");
		if(app.userLogin(user))
		{
			app.displayOptions();
		}
		else
		{
			System.out.println("The Username and Password combination you entered is incorrect.");
			System.out.println("Please try again");
			this.moviesDetailsResult(app, movie, user);
		}
	}

}
